package com.crl.game.simulation.client
{
	import com.crl.game.simulation.client.action.ActionExecuter;
	import com.crl.game.simulation.client.view.ActorView;
	import com.crl.game.simulation.common.Performer;
	import com.crl.game.simulation.common.action.IAction;
	
	/**
	 * 行动者代理 
	 * @author crl
	 * 
	 */	
	public class ActorProxy extends Performer
	{
		protected var view:ActorView;
		protected var actor:ActionExecuter;
		public function ActorProxy(id:int)
		{
			super(id);
			
			actor=new ActionExecuter(this);
		}
		
		public function getView():ActorView{
			return view;
		}
		
		/**
		 * 请求动作; 
		 */		
		override public function requestAction(action:IAction):void{
			actor.execute(action);
		}
	}
}